package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 出入库状态
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/25 15:48
 * @since v1.0
 */
@Getter
public enum InOutStockStatusEnum {

    // 出入库状态
    INSTOCK("enum.inOutStockStatus.name.instock"),
    UN_INSTOCK("enum.inOutStockStatus.name.un_instock"),
    WAIT_INSTOCK("enum.inOutStockStatus.name.wait_instock"),
    OUTSTOCK("enum.inOutStockStatus.name.outstock"),
    UN_OUTSTOCK("enum.inOutStockStatus.name.un_outstock"),
    WAIT_OUTSTOCK("enum.inOutStockStatus.name.wait_outstock"),
    ;

    private String name;

    InOutStockStatusEnum(String name) {
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

    public String getI18nName() {
        return name;
    }
}
